package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.QuestionType;
import cc.eddic.practice.spring.domain.Question;
import cc.eddic.practice.spring.domain.SubCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionAddRequest {

    private int no;

    private String description;

    private QuestionType questionType;

    public Question as(){
        return new Question(this.no,this.description,this.questionType);
    }
}
